package com.suse.warmstill.common.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @Author 黄靖
 * @Data 2022/9/29 13:01
 * Describe:
 */

@ApiModel("分页模型")
@Data

public class ListPageModel<T> implements Serializable {

    @ApiModelProperty("当前页的长度")
    private int pageSize;

    @ApiModelProperty("当前处于第几页")
    private int currentPage;

    @ApiModelProperty("一共有多少页")
    private int pageCount;

    @ApiModelProperty("数据的条数")
    private int dataSize;

    @ApiModelProperty("携带的数据list集合")
    private List<T> list;


}
